package com.icangya.domain;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "fb_wx_suitcase")
public class FbWxSuitcaseDO {//微信提现

    private long id;//id编号

    /**
     * 商户订单号
     */
    private String partnerTradeNo;

    /**
     * 提现用户的openid
     */
    private String openid;

    /**
     * 提现金额
     */
    private String amount;

    /**
     * 提现设备ip地址
     */
    private String spbillCreateIp;

    /**
     * 返回码
     */
    private String returnCode;

    /**
     * 结果码
     */
    private String resultCode;

    /**
     * 微信提现失败原因
     */
    private String errCodeDes;

    /**
     * 提现时间
     */
    private Timestamp createTime;

    /**
     * 微信订单号
     */
    private String paymentNo;

    /**
     * 企业付款成功时间
     */
    private Timestamp paymentTime;

    /**
     * 错误码
     */
    private String errCode;

    /**
     * 返回信息
     */
    private String returnMsg;

    /**
     * userid
     * @return
     */
    private long userid;


    @Basic
    @Column(name = "userid")
    public long getUserid() {
        return userid;
    }

    public void setUserid(long userid) {
        this.userid = userid;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }
    @Basic
    @Column(name = "partner_trade_no")
    public String getPartnerTradeNo() {
        return partnerTradeNo;
    }

    public void setPartnerTradeNo(String partnerTradeNo) {
        this.partnerTradeNo = partnerTradeNo;
    }
    @Basic
    @Column(name = "openid")
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }
    @Basic
    @Column(name = "amount")
    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }
    @Basic
    @Column(name = "spbill_create_ip")
    public String getSpbillCreateIp() {
        return spbillCreateIp;
    }

    public void setSpbillCreateIp(String spbillCreateIp) {
        this.spbillCreateIp = spbillCreateIp;
    }
    @Basic
    @Column(name = "return_code")
    public String getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(String returnCode) {
        this.returnCode = returnCode;
    }
    @Basic
    @Column(name = "result_code")
    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }
    @Basic
    @Column(name = "err_code_des")
    public String getErrCodeDes() {
        return errCodeDes;
    }

    public void setErrCodeDes(String errCodeDes) {
        this.errCodeDes = errCodeDes;
    }
    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    @Basic
    @Column(name = "payment_no")
    public String getPaymentNo() {
        return paymentNo;
    }

    public void setPaymentNo(String paymentNo) {
        this.paymentNo = paymentNo;
    }
    @Basic
    @Column(name = "payment_time")
    public Timestamp getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(Timestamp paymentTime) {
        this.paymentTime = paymentTime;
    }
    @Basic
    @Column(name = "err_code")
    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }
    @Basic
    @Column(name = "return_msg")
    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }


    public FbWxSuitcaseDO(long id, String partnerTradeNo, String openid, String amount, String spbillCreateIp, String returnCode, String resultCode,
                          String errCodeDes, Timestamp createTime, String paymentNo, Timestamp paymentTime, String errCode, String returnMsg) {
        this.id = id;
        this.partnerTradeNo = partnerTradeNo;
        this.openid = openid;
        this.amount = amount;
        this.spbillCreateIp = spbillCreateIp;
        this.returnCode = returnCode;
        this.resultCode = resultCode;
        this.errCodeDes = errCodeDes;
        this.createTime = createTime;
        this.paymentNo = paymentNo;
        this.paymentTime = paymentTime;
        this.errCode = errCode;
        this.returnMsg = returnMsg;
    }

    public FbWxSuitcaseDO() {
    }

    @Override
    public String toString() {
        return "FbWxSuitcaseDO{" +
                "id=" + id +
                ", partnerTradeNo='" + partnerTradeNo + '\'' +
                ", openid='" + openid + '\'' +
                ", amount='" + amount + '\'' +
                ", spbillCreateIp='" + spbillCreateIp + '\'' +
                ", returnCode='" + returnCode + '\'' +
                ", resultCode='" + resultCode + '\'' +
                ", errCodeDes='" + errCodeDes + '\'' +
                ", createTime='" + createTime + '\'' +
                ", paymentNo='" + paymentNo + '\'' +
                ", paymentTime='" + paymentTime + '\'' +
                ", errCode='" + errCode + '\'' +
                ", returnMsg='" + returnMsg + '\'' +
                '}';
    }


}
